<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AntSK PyAPI - 高性能文本嵌入向量生成与文档重排序API</title>
    
    <!-- SEO 元标签 -->
    <meta name="description" content="AntSK PyAPI是基于FastAPI、FlagEmbedding的高性能文本嵌入向量生成与文档重排序API，支持多种embedding和rerank模型，为AntSK生态系统提供核心AI服务。">
    <meta name="keywords" content="AntSK,PyAPI,文本嵌入,向量生成,文档重排序,FastAPI,FlagEmbedding,AI服务,企业级API">
    <meta name="author" content="AntSK Team">
    <meta name="robots" content="index, follow">
    <meta name="language" content="zh-CN">
    
    <!-- Open Graph 标签 -->
    <meta property="og:type" content="website">
    <meta property="og:title" content="AntSK PyAPI - 高性能文本嵌入向量生成与文档重排序API">
    <meta property="og:description" content="基于FastAPI、FlagEmbedding的高性能文本嵌入向量生成与文档重排序API，支持多种embedding和rerank模型。">
    <meta property="og:site_name" content="AntSK PyAPI">
    <meta property="og:locale" content="zh_CN">
    
    <!-- 预加载关键资源 -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <!-- 结构化数据 -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "SoftwareApplication",
        "name": "AntSK PyAPI",
        "applicationCategory": "DeveloperApplication",
        "description": "基于FastAPI、FlagEmbedding的高性能文本嵌入向量生成与文档重排序API",
        "operatingSystem": "Cross Platform",
        "offers": {
            "@type": "Offer",
            "price": "0",
            "priceCurrency": "CNY"
        },
        "creator": {
            "@type": "Organization",
            "name": "AntSK Team",
            "url": "https://antsk.cn"
        },
        "featureList": [
            "多模型支持",
            "高性能缓存",
            "灵活配置",
            "完整监控",
            "容器化部署",
            "错误处理"
        ]
    }
    </script>
    
    <style>
        :root {
            --primary-color: #667eea;
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-color: #f8f9ff;
            --accent-color: #7F7FFF;
            --text-color: #333;
            --text-light: #666;
            --background: #ffffff;
            --surface: rgba(255, 255, 255, 0.95);
            --border: #e0e6ff;
            --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 25px 50px rgba(102, 126, 234, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 50%, #f0f4ff 100%);
            min-height: 100vh;
        }

        /* 导航栏 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
            padding: 1rem 0;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .cta-button {
            background: var(--primary-gradient);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
        }

        /* 英雄区域 */
        .hero {
            padding: 8rem 2rem 4rem;
            text-align: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-light);
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }

        .btn-primary {
            background: var(--primary-gradient);
            color: white;
            padding: 1rem 2rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-color);
            padding: 1rem 2rem;
            border: 2px solid var(--primary-color);
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* 特性展示 */
        .features {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            scroll-margin-top: 100px;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.1rem;
            color: var(--text-light);
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .feature-card {
            background: var(--surface);
            padding: 2rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--border);
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .feature-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .feature-description {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* 使用流程 */
        .how-it-works {
            background: var(--surface);
            padding: 4rem 2rem;
            margin: 4rem 0;
            scroll-margin-top: 100px;
        }

        .steps-container {
            max-width: 1000px;
            margin: 0 auto;
        }

        .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .step {
            text-align: center;
            position: relative;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background: var(--primary-gradient);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 auto 1rem;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

        .step-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .step-description {
            color: var(--text-light);
            font-size: 0.95rem;
        }

        /* 优势展示 */
        .advantages {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            scroll-margin-top: 100px;
        }

        .advantages-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .advantage-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.5rem;
            background: var(--surface);
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
        }

        .advantage-item:hover {
            transform: translateY(-3px);
        }

        .advantage-icon {
            font-size: 2rem;
            color: var(--primary-color);
            flex-shrink: 0;
        }

        .advantage-content h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .advantage-content p {
            color: var(--text-light);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* 行动召唤 */
        .cta-section {
            background: var(--primary-gradient);
            color: white;
            text-align: center;
            padding: 4rem 2rem;
            margin: 4rem 0 0;
        }

        .cta-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .cta-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .cta-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }

        .btn-white {
            background: white;
            color: var(--primary-color);
            padding: 1rem 2.5rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
        }

        .btn-white:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
        }

        /* 页脚 */
        .footer {
            background: #f8f9ff;
            padding: 3rem 2rem 2rem;
            border-top: 1px solid var(--border);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--text-light);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--primary-color);
        }

        .footer-bottom {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
            text-align: center;
            color: var(--text-light);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-container {
                padding: 0 1rem;
            }

            .nav-links {
                display: none;
            }

            .hero {
                padding: 6rem 1rem 3rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn-primary, .btn-secondary {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }

            .features, .advantages {
                padding: 3rem 1rem;
            }

            .how-it-works {
                padding: 3rem 1rem;
            }

            .cta-section {
                padding: 3rem 1rem;
            }

            .footer {
                padding: 2rem 1rem 1rem;
            }
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }

        /* 平滑滚动 */
        html {
            scroll-behavior: smooth;
        }

        /* 导航栏滚动效果 */
        .navbar.scrolled {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="logo">
                <span class="logo-icon">🐜</span>
                <span class="logo-text">AntSK PyAPI</span>
            </div>
            <ul class="nav-links">
                <li><a href="#home">首页</a></li>
                <li><a href="features.html">功能介绍</a></li>
                <li><a href="#how-it-works">使用流程</a></li>
                <li><a href="#advantages">产品优势</a></li>
                <li><a href="https://github.com/xuzeyu91/AntSK-PyApi" target="_blank">GitHub</a></li>
            </ul>
            <a href="http://localhost:8000/docs" class="cta-button">API文档</a>
        </div>
    </nav>

    <!-- 英雄区域 -->
    <section class="hero" id="home">
        <div class="hero-content">
            <h1 class="hero-title">AntSK PyAPI</h1>
            <p class="hero-subtitle">
                基于FastAPI和FlagEmbedding的高性能文本嵌入向量生成与文档重排序API，<br>
                支持多种embedding和rerank模型，兼容OpenAI API格式。
            </p>
            <div class="hero-buttons">
                <a href="http://localhost:8000/docs" class="btn-primary">
                    <span>🚀 查看API文档</span>
                </a>
                <a href="https://github.com/xuzeyu91/AntSK-PyApi" target="_blank" class="btn-secondary">
                    <span>⭐ GitHub 源码</span>
                </a>
            </div>
        </div>
    </section>

    <!-- 核心功能特色 -->
    <section class="features" id="features">
        <h2 class="section-title">核心功能特色</h2>
        <p class="section-subtitle">强大的文本嵌入向量生成和文档重排序能力，为AI应用提供高性能支持</p>
        
        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon">🔤</div>
                <h3 class="feature-title">文本嵌入向量生成</h3>
                <p class="feature-description">支持多种BGE系列embedding模型，生成高质量的文本向量表示</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">📊</div>
                <h3 class="feature-title">文档重排序</h3>
                <p class="feature-description">基于先进的rerank模型，对文档进行智能重排序，提升检索精度</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">🔌</div>
                <h3 class="feature-title">OpenAI兼容API</h3>
                <p class="feature-description">完全兼容OpenAI API格式，无缝集成到现有应用中</p>
            </div>
        </div>
        
        <div style="text-align: center; margin-top: 3rem;">
            <a href="features.html" class="btn-primary">
                <span>📖 查看详细功能介绍</span>
            </a>
        </div>
    </section>

    <!-- 使用流程 -->
    <section class="how-it-works" id="how-it-works">
        <div class="steps-container">
            <h2 class="section-title">如何使用</h2>
            <p class="section-subtitle">三个简单步骤，快速开始使用AntSK PyAPI服务</p>
            
            <div class="steps">
                <div class="step">
                    <div class="step-number">1</div>
                    <h3 class="step-title">部署服务</h3>
                    <p class="step-description">使用Docker或直接运行方式部署AntSK PyAPI服务</p>
                </div>
                <div class="step">
                    <div class="step-number">2</div>
                    <h3 class="step-title">调用API</h3>
                    <p class="step-description">通过RESTful API接口发送文本数据进行向量生成或重排序</p>
                </div>
                <div class="step">
                    <div class="step-number">3</div>
                    <h3 class="step-title">获取结果</h3>
                    <p class="step-description">接收高质量的向量数据或重排序结果，集成到您的AI应用中</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 产品优势 -->
    <section class="advantages" id="advantages">
        <h2 class="section-title">产品优势</h2>
        <p class="section-subtitle">为什么选择AntSK PyAPI？</p>
        
        <div class="advantages-grid">
            <div class="advantage-item">
                <div class="advantage-icon">⚡</div>
                <div class="advantage-content">
                    <h3>高效处理</h3>
                    <p>基于FlagEmbedding优化的模型推理，快速生成高质量文本向量</p>
                </div>
            </div>
            <div class="advantage-item">
                <div class="advantage-icon">🎯</div>
                <div class="advantage-content">
                    <h3>精准重排序</h3>
                    <p>基于先进的rerank模型，精确计算文档相关性，提升检索质量</p>
                </div>
            </div>
            <div class="advantage-item">
                <div class="advantage-icon">🔧</div>
                <div class="advantage-content">
                    <h3>灵活配置</h3>
                    <p>支持环境变量和配置文件，模型智能缓存，避免重复加载</p>
                </div>
            </div>
            <div class="advantage-item">
                <div class="advantage-icon">🛡️</div>
                <div class="advantage-content">
                    <h3>容器化部署</h3>
                    <p>完整的Docker和Docker Compose支持，支持私有化部署</p>
                </div>
            </div>
            <div class="advantage-item">
                <div class="advantage-icon">📈</div>
                <div class="advantage-content">
                    <h3>完整监控</h3>
                    <p>健康检查、模型列表、配置查看，全局异常处理和输入验证</p>
                </div>
            </div>
            <div class="advantage-item">
                <div class="advantage-icon">💡</div>
                <div class="advantage-content">
                    <h3>多模型支持</h3>
                    <p>支持FlagEmbedding系列的所有embedding和rerank模型</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 行动召唤 -->
    <section class="cta-section">
        <div class="cta-content">
            <h2 class="cta-title">开始使用 AntSK PyAPI</h2>
            <p class="cta-subtitle">立即体验高性能的文本嵌入向量生成与文档重排序服务</p>
            <div style="display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;">
                <a href="http://localhost:8000/docs" class="btn-white">
                    <span>🚀 查看API文档</span>
                </a>
                <a href="https://github.com/xuzeyu91/AntSK-PyApi" target="_blank" class="btn-white">
                    <span>⭐ GitHub 源码</span>
                </a>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="footer-content">
            <div class="footer-section">
                <h3>产品</h3>
                <ul class="footer-links">
                    <li><a href="features.html">功能介绍</a></li>
                    <li><a href="#advantages">产品优势</a></li>
                    <li><a href="index copy.html">开始使用</a></li>
                </ul>
            </div>
            <div class="footer-section">
                <h3>API接口</h3>
                <ul class="footer-links">
                    <li><a href="http://localhost:8000/v1/embeddings">文本嵌入向量</a></li>
                    <li><a href="http://localhost:8000/v1/rerank">文档重排序</a></li>
                    <li><a href="http://localhost:8000/health">健康检查</a></li>
                    <li><a href="http://localhost:8000/models">模型列表</a></li>
                </ul>
            </div>
            <div class="footer-section">
                <h3>开发者</h3>
                <ul class="footer-links">
                    <li><a href="http://localhost:8000/docs">API参考</a></li>
                    <li><a href="https://github.com/xuzeyu91/AntSK-PyApi">GitHub仓库</a></li>
                    <li><a href="#">使用示例</a></li>
                    <li><a href="#">技术支持</a></li>
                </ul>
            </div>
            <div class="footer-section">
                <h3>关于</h3>
                <ul class="footer-links">
                    <li><a href="#">项目介绍</a></li>
                    <li><a href="#">联系我们</a></li>
                    <li><a href="#">开源许可</a></li>
                    <li><a href="#">贡献指南</a></li>
                </ul>
            </div>
            <div class="footer-section">
                <h3>技术栈</h3>
                <div style="display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;">
                    <span style="background: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.8rem;">Python</span>
                    <span style="background: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.8rem;">FastAPI</span>
                    <span style="background: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.8rem;">OpenAI</span>
                    <span style="background: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.8rem;">LangChain</span>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p>© 2024 AntSK PyAPI. 基于开源技术构建的高性能文本嵌入向量生成与文档重排序API</p>
        </div>
    </footer>
    <script>
        // 导航栏滚动效果
        window.addEventListener('scroll', function() {
            const navbar = document.querySelector('.navbar');
            if (window.scrollY > 50) {
                navbar.classList.add('scrolled');
            } else {
                navbar.classList.remove('scrolled');
            }
        });

        // 平滑滚动到指定区域
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });

        // 页面加载动画
        document.addEventListener('DOMContentLoaded', function() {
            const elements = document.querySelectorAll('.feature-card, .step, .advantage-item');
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('fade-in');
                    }
                });
            }, { threshold: 0.1 });

            elements.forEach(el => observer.observe(el));
        });
    </script>
</body>
</html>